<?xml version="1.0" encoding="utf-8" ?>
<hibernate-mapping xmlns="urn:nhibernate-mapping-2.2">
	<class name="Blog.Net.Common.DataObjects.Login, Blog.Net" table="login">
		<id name="Id" type="Int32" unsaved-value="null">
			<column name="id" sql-type="int" not-null="true" unique="true" index="PRIMARY"/>
			<generator class="hilo" />
		</id>
		<property name="Active" type="Boolean">
			<column name="active" sql-type="bit" not-null="true"/>
		</property>
		<property name="Email" type="String">
			<column name="email" length="255" sql-type="varchar" not-null="false" unique="true" index="email"/>
		</property>
		<property name="FirstName" type="String">
			<column name="first_name" length="255" sql-type="varchar" not-null="false"/>
		</property>
		<property name="LastName" type="String">
			<column name="last_name" length="255" sql-type="varchar" not-null="false"/>
		</property>
		<property name="UserName" type="String">
			<column name="user_name" length="255" sql-type="varchar" not-null="true" unique="true" index="username"/>
		</property>
		<property name="Password" type="String">
			<column name="password" length="255" sql-type="varchar" not-null="true"/>
		</property>
		<property name="PasswordQuestion" type="String">
			<column name="password_question" length="255" sql-type="varchar" not-null="false"/>
		</property>
		<property name="PasswordAnswer" type="String">
			<column name="password_answer" length="255" sql-type="varchar" not-null="false"/>
		</property>
		<bag name="Roles" table="mtm_login_role" inverse="false" lazy="true" cascade="none">
			<key>
				<column name="login_id" sql-type="int" not-null="true"/>
			</key>
			<many-to-many class="Blog.Net.Common.DataObjects.Role, Blog.Net">	
				<column name="role_id" sql-type="int" not-null="true"/>
			</many-to-many>
		</bag>
	</class>
</hibernate-mapping>